package com.lrz.pojo.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.lrz.pojo.User;
import lombok.Data;
import nonapi.io.github.classgraph.json.Id;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

@Data
public class CommentDTO implements Serializable {
    @Id
    private String _id;

    private String articleId;

    private String content;

    private User user;

    private User acceptUser;

    private String parentId;

    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime publishDate;

    private Integer thumbup;

    private List<CommentDTO> sons;

    boolean like;
}
